#include "wine/library.h"

extern char **environ;
extern char **__wine_main_environ;

extern void mmap_init(void);

void rewine_init(int argc, char *argv[])
{
    /* force a few limits that are set too low on some platforms */
#ifdef RLIMIT_NOFILE
    set_max_limit( RLIMIT_NOFILE );
#endif
#ifdef RLIMIT_AS
    set_max_limit( RLIMIT_AS );
#endif

    __wine_main_argc = argc;
    __wine_main_argv = argv;
    __wine_main_environ = environ;
    mmap_init();
}
